<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简约首页</title>
    <!-- 引入Bootstrap.css -->
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <!-- 引入index.css样式 -->
    <link rel="stylesheet" href="./css/index.css">
    <!-- 引入formsBox.css登录界面样式 -->
    <link rel="stylesheet" href="./css/formBox.css">
    <!-- 引入jQuery -->
    <script src="./js/jQuery.js"></script>
    <!-- 引入vue.js -->
    <script src="./vue/vue.js"></script>
</head>

<body>
    <!-- 导航栏部分 -->
    <nav class="nav">
        <div class="container">
            <div class="row">
                <!-- logo部分 -->
                <div class="col-lg-6 col-xs-6 logo">
                    <a href="#" class="glyphicon glyphicon-education"></a>
                </div>
                <!-- 手机屏显示的导航菜单标签 -->
                <div class="col-xs-6 menu-togger visible-xs">
                    <span class="glyphicon glyphicon-list"></span>
                </div>
                <!-- 导航信息部分 -->
                <div class="col-lg-6 hidden-x navbar-menu ">
                    <a href="#" class="col-lg-2">home</a>
                    <a href="#" class="col-lg-2">About</a>
                    <a href="#" class="col-lg-2">Services</a>
                    <a href="#" class="col-lg-2">Education</a>
                    <a href="#" class="col-lg-2">Works</a>
                    <a href="#" class="col-lg-2">Contact</a>
                </div>
            </div>
        </div>
    </nav>
    <!-- 登录界面 -->
    <main class="main">
        <!-- 登录界面 -->
        <div class="forms" id="app">
            <div class="form-box">
                <span class="form-text">login</span>
                <input type="text" v-model="UseName" placeholder="账号">
                <input type="password" v-model="Password" placeholder="密码">
                <button class="btn">登录</button>
                <span>没注册？<a href="#">快去注册</a></span>
            </div>
        </div>

    </main>
    <script>
        $('.menu-togger').click(function () {
            // 改变导航栏总标签样式
            $('.navbar-menu').toggleClass('navbar-menu-active');
            $('.menu-togger span').toggleClass('glyphicon-list glyphicon-remove');

        })
        // 登录
        $('.deng').click(function () {
            $('.btn-sec').stop().show();
            $('.btn-sec .btn-logo').click(function () {
                $('.btn-sec ').stop().hide();

            })
        })


    </script>
    <!-- Vue -->
    <script>
        new Vue({
            el: '#app',
            data: {
                UseName: '',
                Password: ''
            },
            // 计算属性
            computed: {
                fun: {
                    get() {
                        if (this.UseName && this.Password) {
                            const infUseName ={
                                UseName:this.UseName,
                                Password:this.Password
                            }
                            return infUseName
                        }
                    }
                }
            }
        })
    </script>
</body>

</html>
